package com.hundsun.yr.universal.p2p.presenter.impl;

import android.content.Context;

import com.hundsun.yr.universal.p2p.interactor.base.SettingInteractor;
import com.hundsun.yr.universal.p2p.interactor.impl.SettingInteractorImpl;
import com.hundsun.yr.universal.p2p.presenter.base.RequestPresenter;
import com.hundsun.yr.universal.p2p.view.MineSettingView;



/**
 * @Title: SettingPresenterImpl.java 
 * @Description: TODO(用一句话描述该文件做什么) 
 * @date 2015-10-27 上午11:18:59 
 * @author:hejun.shen
 * @email:shenhj15971@hundsun.com 
 * @replace author:
 * @replace date:
 * @version V1.0   
 */
public class SettingPresenterImpl extends InitializePresenterImpl implements RequestPresenter{
	

	private Context mContext = null;
	private MineSettingView mSettingView = null;
	
	private SettingInteractor mInteractor;
	
	
	
	public SettingPresenterImpl(Context context,MineSettingView view) {
		// TODO Auto-generated constructor stub
		super(context, view);
		if (null == view) {
            throw new IllegalArgumentException("Constructor's parameters must not be Null");
        }
		this.mContext=context;
		this.mSettingView=view;
		this.mInteractor=new SettingInteractorImpl();
	}

	@Override
	public void initialized() {
		// TODO Auto-generated method stub

		mSettingView.setAdapter(mInteractor.getBaseItemData(mContext), mInteractor.getExpandItemData(mContext));
/*		//这段不知道干嘛的
		if(mInteractor.isLogin(mContext)){
			mSettingView.initUserInfo(mInteractor.userLogo(mContext),
					mInteractor.userName(mContext), mInteractor.certNo(mContext));
		}*/
	}



}
